package com.jimple.apps.RssClient.Properties;

import java.io.File;
import java.io.FileOutputStream;
import java.util.HashMap;
import java.util.Properties;

public class SaveFeeds {

	private static final String FeedsLocation = "feeds.dat";

	public static boolean SaveProperties(Properties propsToSave) {
		try {
			String tempDir = System.getenv("temp");
			HashMap returnMap = new HashMap();
			File configFile = new File(tempDir, FeedsLocation);
			Properties props = new Properties();
			FileOutputStream fos = new FileOutputStream(configFile);
			propsToSave.store(fos, "");
			fos.close();
			return true;

		} catch (Exception e) {
			e.printStackTrace();
		}
		return false;
	}
}
